package com.vikutorika.entity;

import java.sql.Timestamp;
import java.util.Objects;

public class PersonalTextMessage {
	private Integer mid;
	private Integer sender_uid;
	private Integer receiver_uid;
	private Timestamp creat_time;
	private String content;
	private String state;

	@Override
	public String toString() {
		return "PersonalTextMessage{" +
				"mid=" + mid +
				", sender_uid=" + sender_uid +
				", receiver_uid=" + receiver_uid +
				", creat_time=" + creat_time +
				", content='" + content + '\'' +
				", state='" + state + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		PersonalTextMessage that = (PersonalTextMessage) o;
		return Objects.equals(mid, that.mid) && Objects.equals(sender_uid, that.sender_uid) && Objects.equals(receiver_uid, that.receiver_uid) && Objects.equals(creat_time, that.creat_time) && Objects.equals(content, that.content) && Objects.equals(state, that.state);
	}

	@Override
	public int hashCode() {
		return Objects.hash(mid, sender_uid, receiver_uid, creat_time, content, state);
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public Integer getSender_uid() {
		return sender_uid;
	}

	public void setSender_uid(Integer sender_uid) {
		this.sender_uid = sender_uid;
	}

	public Integer getReceiver_uid() {
		return receiver_uid;
	}

	public void setReceiver_uid(Integer receiver_uid) {
		this.receiver_uid = receiver_uid;
	}

	public Timestamp getCreat_time() {
		return creat_time;
	}

	public void setCreat_time(Timestamp creat_time) {
		this.creat_time = creat_time;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public PersonalTextMessage() {
	}

	public PersonalTextMessage(Integer mid, Integer sender_uid, Integer receiver_uid, Timestamp creat_time, String content, String state) {
		this.mid = mid;
		this.sender_uid = sender_uid;
		this.receiver_uid = receiver_uid;
		this.creat_time = creat_time;
		this.content = content;
		this.state = state;
	}
}
